<template>
  <div>
    <h1>首页</h1>
    <!-- nuxt无需导入，直接使用组件库，而且是自动按需导入的 -->
    <van-button type="primary">主要按钮</van-button>
    <van-button type="success">成功按钮</van-button>
    <van-button type="default">默认按钮</van-button>
    <van-button type="warning">警告按钮</van-button>
    <van-button type="danger">危险按钮</van-button>

  </div>
</template>

<script setup lang='ts'>
import { ref, reactive} from 'vue'
let res = await useFetch("/api/test")
console.log(res.data.value)

</script>
<style  scoped>

</style>